local Lua__heiying = fk.CreateSkill {
  name = "Lua__heiying",
  tags = { Skill.Compulsory, },
}

Fk:loadTranslationTable {
  ["Lua__heiying"] = "黑影",
  ["$Lua__heiying1"] = "黑影",
  ["$Lua__heiying2"] = "冰封九州，雪葬仇敌。",
  ["$Lua__heiying3"] = "凭你，也来挡我的路？",
  [":Lua__heiying"] = "锁定技，你不会受到黑色与无色牌的伤害。",
}

Lua__heiying:addEffect(fk.DamageInflicted, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(Lua__heiying.name) and
    data.card and (data.card.color == Card.Black or data.card.color == Card.NoColor)
  end,
  on_use = function(self, event, target, player, data)
    -- 取消伤害
    data:preventDamage()
  end,
})

return Lua__heiying
